package com.im.config;

import org.springframework.context.annotation.Configuration;

@Configuration
public class StringUtil {
    /**
     * 将两字符串合并为一个字符串
     * 两参数顺序不限
     */
    public String str_compare(String a, String b) {
        int i = a.compareTo(b);
        if (i >= 0) {
            return a + b;
        }
        return b + a;
    }
}
